import vue from '@vitejs/plugin-vue'

export default {
    base: './',
    plugins: [vue()],
    optimizeDeps: {
        include: ['schart.js']
    },
    server: {
        // host:"www.local.wxdev.com",
        proxy: {
            '/api': {
                // target: 'http://demolocal.com:100',
                target: 'http://127.0.0.1',
                changeOrigin: true,
                rewrite: (path) => path.replace(/^\/api/, '/index.php/')
            },
        }
    }
}